package IR.org.core.dao;

import IR.org.core.entity.PolicyInfo;
import IR.org.core.vo.HistoricalSelfVo;
import IR.org.core.vo.HistoricalVo;
import IR.org.core.vo.OverviewVo;
import IR.org.core.vo.viewInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shuangshuang.li
 * @since 2023-04-14
 */
public interface PolicyInfoMapper extends BaseMapper<PolicyInfo> {

    List<viewInfoVo> getCompletedInfo(String str);
    List<viewInfoVo> getProcessingInfo(String str);

    List<viewInfoVo> getEngingInfo();

    List<HistoricalVo> getHistorical(@Param("id") Long id, @Param("date") String date);

    List<HistoricalSelfVo> getHistoricalSelf(@Param("id") Long id, @Param("date") String date, @Param("name") String name);

    int setEvaluationResults(@Param("id") Long id, @Param("status") Integer status, @Param("state") Integer state);

    BigDecimal getAmount(@Param("id") Long id);

    void setReimbursementId(@Param("policyId")Long policyId,@Param("id")Long id);

    OverviewVo getOverViewInfo(@Param("id") Long id);

    int setRegisterInfo(@Param("data") PolicyInfo policInfo);
}
